package com.meta.platform.login.plus.wechat.rest.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * 微信小程序登录CMD
 *
 * @author pengjianfeng
 * @version 1.0
 * @date 2021/1/22 1:37 下午
 */
@Data
@ApiModel("微信小程序手机号码解密")
public class WeChatMinDecryptPhoneNumberCmd {

    @ApiModelProperty(notes = "小程序appId")
    @NotBlank(message = "小程序appId不能为空")
    private String appId;

    @ApiModelProperty(notes = "用户唯一标识")
    @NotBlank(message = "用户唯一标识不能为空")
    private String openId;

    @ApiModelProperty(notes = "敏感加密数据")
    @NotBlank(message = "敏感加密数据不能为空")
    private String encryptedData;

    @ApiModelProperty(notes = "加密算法的初始向量")
    @NotBlank(message = "初始向量不能为空")
    private String iv;

    @ApiModelProperty(notes = "敏感数据对应的云ID，开通云开发的小程序才会有，可为空")
    private String cloudID;

}
